import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/public.less'
import './utils/flexible'
import storage from './utils/storage'
Vue.prototype.$storage = storage
import './permission'
import CommonModal from '@/components/CommonModal'
// import Header from '@/components/Header'
Vue.component('CommonModal', CommonModal)
// Vue.component('Header', Header)
Vue.config.productionTip = false
Vue.filter('replace', val => {
  if (!val) return ''
  return val.split('T')[0]
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
